***CODES USED TO IDENTIFY VIOLENT CONFLICTS IN ACLED DATASET***

*To access the ACLED dataset, visit: https://acleddata.com/

*To keep only violent conflicts classified as "VIolence against civilians", "Bttles", and "Explosions/Remote violence": 
gen violent_conflicts = 0
replace violent_conflicts = 1 if event_type == "Violence against civilians"
replace violent_conflicts = 1 if event_type == "Battles"
replace violent_conflicts = 1 if event_type == "Explosions/Remote violence"

*TO keep only the violent conflicts: 
keep if violent_conflicts == 1

*To keep only incidents in Nigeria: 
keep if country == "Nigeria"


*To keep only incidents that occurred between 1997 to 2016
drop if year > 2016

*This leaves the violent conflict incidents that I used to develop the explanatory variable. 
